package community;

import java.sql.Date;
import java.util.*;

import model.*;

import org.apache.struts.action.*;
import org.apache.struts.upload.*;

public class CommunityForm extends ActionForm{
	
	//커뮤니티 정보
	private int cono;
	private String coname = null;
	private int coopen;
	private Date coregdate = null;
	private String cologoofn = null;
	private String cologosfn = null;
	private String copoptext = null;
	private int copopwidth;
	private int copopheight;
	private String coguide = null;
	private int ccno;
	

	//커뮤니티가 가지고 있는 링크
	private Vector<CommunityLink> communityLinks = null;
	//커뮤니티가 가지고 있는 링크사이즈
	private int linksize;
	
	//유저가 가입한 커커뮤니티에 해당하는 정보
	private Vector<MemberCommunity> memberCommunitys = null;
	
	//신설동호회
	private Vector<Community> newCommunity = null;
	//인기동호회
	private Vector<Community> populCommunity = null;
	//종류별 동호회
	private Vector<Community> sortCommunity = null;
	//검색된 동호회 정보
	private Vector<Community> sortResult = null;
	//커뮤니티에 해당하는 공지사항
	private Vector<NoticeBoard> noticeBoards = null;
	
	//커뮤니티 관리자닉네임
	private String mcnick;
	//커뮤니티 관리자아이디
	private String mid;
	//커뮤니티 회원수
	private int count;
	//커뮤니티가 선택할 수 있는 카테고리
	private Vector<CommunityCategory> categorys = null;
	
	private FormFile file;  
	
	//커뮤니티명 검색 값
	private String findname;
	
//	getter & setter methods

	public String getFindname() {
		return findname;
	}

	public void setFindname(String findname) {
		this.findname = findname;
	}

	public Vector<CommunityCategory> getCategorys() {
		return categorys;
	}

	public void setCategorys(Vector<CommunityCategory> categorys) {
		this.categorys = categorys;
	}

	public FormFile getFile() {
		return file;
	}

	public void setFile(FormFile file) {
		this.file = file;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getMcnick() {
		return mcnick;
	}

	public void setMcnick(String mcnick) {
		this.mcnick = mcnick;
	}

	public Vector<CommunityLink> getCommunityLinks() {
		return communityLinks;
	}

	public void setCommunityLinks(Vector<CommunityLink> communityLinks) {
		this.communityLinks = communityLinks;
	}


	public int getCcno() {
		return ccno;
	}

	public void setCcno(int ccno) {
		this.ccno = ccno;
	}

	public String getCoguide() {
		return coguide;
	}

	public void setCoguide(String coguide) {
		this.coguide = coguide;
	}

	public String getCologoofn() {
		return cologoofn;
	}

	public void setCologoofn(String cologoofn) {
		this.cologoofn = cologoofn;
	}

	public String getCologosfn() {
		return cologosfn;
	}

	public void setCologosfn(String cologosfn) {
		this.cologosfn = cologosfn;
	}

	public String getConame() {
		return coname;
	}

	public void setConame(String coname) {
		this.coname = coname;
	}

	public int getCono() {
		return cono;
	}

	public void setCono(int cono) {
		this.cono = cono;
	}

	public int getCoopen() {
		return coopen;
	}

	public void setCoopen(int coopen) {
		this.coopen = coopen;
	}

	public int getCopopheight() {
		return copopheight;
	}

	public void setCopopheight(int copopheight) {
		this.copopheight = copopheight;
	}

	public String getCopoptext() {
		return copoptext;
	}

	public void setCopoptext(String copoptext) {
		this.copoptext = copoptext;
	}

	public int getCopopwidth() {
		return copopwidth;
	}

	public void setCopopwidth(int copopwidth) {
		this.copopwidth = copopwidth;
	}

	public Date getCoregdate() {
		return coregdate;
	}

	public void setCoregdate(Date coregdate) {
		this.coregdate = coregdate;
	}


	public Vector<Community> getNewCommunity() {
		return newCommunity;
	}

	public Vector<Community> getPopulCommunity() {
		return populCommunity;
	}

	public Vector<Community> getSortCommunity() {
		return sortCommunity;
	}

	public void setSortCommunity(Vector<Community> sortCommunity) {
		this.sortCommunity = sortCommunity;
	}

	public void setNewCommunity(Vector<Community> newCommunity) {
		this.newCommunity = newCommunity;
	}

	public void setPopulCommunity(Vector<Community> populCommunity) {
		this.populCommunity = populCommunity;
	}

	public Vector<MemberCommunity> getMemberCommunitys() {
		return memberCommunitys;
	}

	public void setMemberCommunitys(Vector<MemberCommunity> memberCommunitys) {
		this.memberCommunitys = memberCommunitys;
	}

	public Vector<Community> getSortResult() {
		return sortResult;
	}

	public void setSortResult(Vector<Community> sortResult) {
		this.sortResult = sortResult;
	}

	public Vector<NoticeBoard> getNoticeBoards() {
		return noticeBoards;
	}

	public void setNoticeBoard(Vector<NoticeBoard> noticeBoards) {
		this.noticeBoards = noticeBoards;
	}

	public String getMid() {
		return mid;
	}

	public void setMid(String mid) {
		this.mid = mid;
	}

	public void setNoticeBoards(Vector<NoticeBoard> noticeBoards) {
		this.noticeBoards = noticeBoards;
	}

	public int getLinksize() {
		return linksize;
	}

	public void setLinksize(int linksize) {
		this.linksize = linksize;
	}

}
